<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"/>
	<title>demo1</title>
	<meta name="keywords" content=""/>
	<meta name="description" content=""/>
	<meta name="viewport" content="width=device-width"/>
	<link rel="shortcut icon" href="img/touchicon.png"/>
	<link rel="stylesheet" href=""/>
	<style type="text/css">
		
	</style>
</head>
<body>
	
	<script>
		var arr = [1,2,3,4,5,6,7,8,9,10];
		var i = 0;
		var s = 0;
		while (i<arr.length) {
			s = s + arr[i];
			i++;
		}
		var averageNum = s/arr.length;
		console.log(averageNum);
		var i = 7;
		var arr = [];
		while (i<100000) {
			if(i%7==0&&i%6==1&&i%5==1&&i%4==1&&i%3==1&&i%2==1){
				arr.push(i);
			}
			i = i +7;
		}
		console.log(arr);
	</script>
</body>
</html>